package com.pojo;

import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;
import java.math.BigDecimal;

/**
 * @Description  
 * @Author  LGH
 * @Date 2020-03-09 10:09:31 
 */

@Entity
@Table ( name ="seckillgoods" , schema = "")
@GenericGenerator(name="snowFlow",strategy = "com.pojo.id.SnowflowID")
public class Seckillgoods  implements Serializable {

	private static final long serialVersionUID =  4502873823399854391L;

	@Id
	@GeneratedValue(generator = "snowFlow")
   	@Column(name = "sId" )
	private Long sId;

   	@Column(name = "goodsId" )
	private Long goodsId;

   	@Column(name = "price" )
	private BigDecimal price;

   	@Column(name = "beginTime" )
	private Date beginTime;

   	@Column(name = "kuchun" )
	private Long kuchun;

	public Long getSId() {
		return this.sId;
	}

	public void setSId(Long sId) {
		this.sId = sId;
	}

	public Long getGoodsId() {
		return this.goodsId;
	}

	public void setGoodsId(Long goodsId) {
		this.goodsId = goodsId;
	}

	public BigDecimal getPrice() {
		return this.price;
	}

	public void setPrice(BigDecimal price) {
		this.price = price;
	}

	public Date getBeginTime() {
		return this.beginTime;
	}

	public void setBeginTime(Date beginTime) {
		this.beginTime = beginTime;
	}

	public Long getKuchun() {
		return this.kuchun;
	}

	public void setKuchun(Long kuchun) {
		this.kuchun = kuchun;
	}

	@Override
	public String toString() {
		return "{" +
					"sId='" + sId + '\'' +
					"goodsId='" + goodsId + '\'' +
					"price='" + price + '\'' +
					"beginTime='" + beginTime + '\'' +
					"kuchun='" + kuchun + '\'' +
				'}';
	}

}
